package com.flycms.esmodule.model;

import com.flycms.esmodule.constant.EsConstant;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.Date;

/**
 * @author huangzt
 * @version 1.0
 * @date 2020/3/15 19:24
 */
@Getter
@Setter
@Document(indexName = EsConstant.INDEX_NAME.SOFT, type = EsConstant.INDEX_NAME.TYPE)
public class EsSoft {

    /**
     * 软件id
     */
    @Id
    private Integer id;
    /**
     * 软件名称
     */
    @Field(type = FieldType.Keyword, analyzer = "ik_max_word")
    private String softName;
    /**
     * 软件简介
     */
    @Field(type = FieldType.Keyword, analyzer = "ik_max_word")
    private String softDescription;
    /**
     * 软件平台
     */
    @Field(type = FieldType.Keyword, analyzer = "ik_max_word")
    private String softPlatform;
    /**
     * 软件版本
     */
    @Field(type = FieldType.Keyword, analyzer = "ik_max_word")
    private String softVersion;
    /**
     * 内容创建时间
     */
    private Date createTime;
    /**
     * 内容更新时间
     */
    private Date updateTime;
}
